<script setup>

import Student_tabbar from "../apply/student_tabbar.vue";


const toNext_1 = function () {
  uni.navigateTo({url: '/pages/yemian/yemian1'})
}

const toNext_2 = function () {
  uni.navigateTo({url: '/pages/yemian/yemian3'})
}

</script>

<template>
  <student_tabbar :current-index="1"/>
  <view id="top-background">
  </view>
  <view id="top_button">
    <select id="sel">
      <option>近一周</option>
      <option>近一个月</option>
      <option>近一年</option>
      <option>一年前</option>
    </select>
  </view>
  <view id="background">
    <view>
      <view id="h1" @click="toNext_1">
        <view id="h1_1">
          <view id="name">
            张小白
          </view>
          <view id="studentId">
            2020090911004
          </view>
        </view>
        <view class="words">
          请假类型: 回家
        </view>
        <view class="words">
          申请时间：2022-11-26 17:56:32
        </view>
        <view class="words">
          开始时间：2022-11-26 17:56:32
        </view>
        <view class="words">
          结束时间：2022-11-26 17:56:32
        </view>
        <view class="words">
          请假理由: 回家取东西取东西取东西取东西取东西取东西取东西取东西取东西取东西取东西取东西取东西
        </view>
      </view>
      <view id="h2" @click="toNext_2">
        <view id="h1_1">
          <view id="name">
            张小白
          </view>
          <view id="studentId">
            2020090911004
          </view>
        </view>
        <view class="words">
          请假类型: 回家
        </view>
        <view class="words">
          申请时间：2022-11-26 17:56:32
        </view>
        <view class="words">
          开始时间：2022-11-26 17:56:32
        </view>
        <view class="words">
          结束时间：2022-11-26 17:56:32
        </view>
        <view class="words">
          请假理由: 回家取东西取东西取东西取东西取东西取东西取东西取东西取东西取东西取东西取东西取东西
        </view>
      </view>
    </view>
  </view>

</template>

<style scoped>
#top-background{
  width: 100%;
  height: 70px;
  background: linear-gradient(180.00deg, #2264ff 0%, #f5f5f5 100%);
}

#background{
  display: flex;
  justify-content: center;
}

#background_2{
  display: flex;
  justify-content: center;
}

#h1{
  width: 345px;
  height: 180px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 2px 4px #c8c7cc;
  padding: 10px;
  margin-top: -10px;
}

#h2{
  width: 345px;
  height: 180px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 4px #c8c7cc;
  padding: 10px;
  margin-top: -390px;
}

#h2{
  font-weight: 400;
  font-size: 14px;
  text-align: right;
  color: #999;
  position: relative;
  bottom: -400px;
}

#top_button{
  width: 100px;
  height: 50px;
  margin-top: -50px;
  margin-left: 30px;
}

#sel{
  width: 100px;
  height: 25px;
  background-color: #f8f8f8;
  color: #3a3a3a;
  font-weight: 400;
  border-radius: 5px;
  border: 4px solid #f8f8f8;
}



#background_2{
  display: flex;
  justify-content: center;
}

#h2{
  font-weight: 400;
  font-size: 14px;
  text-align: right;
  color: #999;
  position: relative;
  bottom: -400px;
}

#h1_1{
  display: flex;
  justify-content: space-between;
}

#circle{
  width: 45px;
  height: 45px;
  border-radius: 45px;
  background-color: #2264ff;
}

#surname{
  color: #f8f8f8;
  text-align: center;
  margin-top: 9px;
  margin-left: 0.5px;
  font-weight: 700;
  font-size: 18px;
}

#name{
  font-weight: 700;
  font-size: 20px;
  text-align: left;
  color: #1a1a1a;
  margin-top: 5px;
}

#studentId{
  color: #999999;
  font-weight: 400;
  font-size: 16px;
  margin-top: 10px;
  margin-right: 10px;
}

.words{
  margin-top: 5px;
  font-weight: 400;
  font-size: 14px;
  text-align: left;
  color: #808080;
}

#bottom{
  display: flex;
}

#picture{
  width: 20px;
  height: 20px;
  margin-top: 5px;
}

#words_1{
  margin-top: 5px;
  margin-left: 5px;
  font-weight: 400;
  font-size: 13px;
  text-align: right;
  color: #2264ff;
}
</style>